package com.se.domain.dto.wx;

import cn.hutool.json.JSONObject;
import lombok.Data;

@Data
public class WxUserInfoDTO {
	private String openId;
	private String nickname;
	private String headImgUrl;
	
	public WxUserInfoDTO(JSONObject jsonObject) {
		this.openId = jsonObject.getStr("openid");
		this.nickname = jsonObject.getStr("nickname");
		this.headImgUrl = jsonObject.getStr("headimgurl");
	}
}
